package com.xc.dao;

import com.xc.pojo.StockOption;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StockOptionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StockOption record);

    int insertSelective(StockOption record);

    StockOption selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StockOption record);

    int updateByPrimaryKey(StockOption record);


    //  通过股票代码查询是否存在
    StockOption findMyOptionIsExistByCode(@Param("uid") Integer uid,
                                          @Param("stockCode") String stockCode);

    //  查询用户的自选列表
    List findMyOptionByKeywords(@Param("uid") Integer uid,
                                @Param("keyWords") String keyWords);


    StockOption isOption(@Param("uid") Integer uid,
                         @Param("code") String code);



}